﻿<common:LayoutAwarePage xmlns:JiuYouWin8Ad="using:JiuYouWin8Ad" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:RuneMasterWin8.Pages"
    xmlns:common="using:RuneMasterWin8.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Views="using:RuneMasterWin8.Views"
    x:Name="pageRoot"
    x:Class="RuneMasterWin8.Pages.GamePage"
    DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Mode=Self}}"
    mc:Ignorable="d" FontFamily="Microsoft YaHei">

    <common:LayoutAwarePage.Resources>

        <!-- TODO: Delete this line if the key AppName is declared in App.xaml -->
        <x:String x:Key="AppName">My Application</x:String>
        <Style x:Key="ButtonStylePause" TargetType="Button">
        	<Setter Property="Template">
        		<Setter.Value>
        			<ControlTemplate TargetType="Button">
        				<Grid>
        					<VisualStateManager.VisualStateGroups>
        						<VisualStateGroup x:Name="CommonStates">
        							<VisualState x:Name="Normal"/>
        							<VisualState x:Name="Pressed">
        								<Storyboard>
        									<ColorAnimation Duration="0" To="#FFC9C9C9" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle" d:IsOptimized="True"/>
        									<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(Shape.StrokeThickness)" Storyboard.TargetName="rectangle" d:IsOptimized="True"/>
        									<ColorAnimation Duration="0" To="Red" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle" d:IsOptimized="True"/>
        								</Storyboard>
        							</VisualState>
        							<VisualState x:Name="Disabled"/>
        							<VisualState x:Name="PointerOver"/>
        						</VisualStateGroup>
        					</VisualStateManager.VisualStateGroups>
        					<Rectangle x:Name="rectangle" Width="98" VerticalAlignment="Top" StrokeThickness="0" Stroke="#FF474747" Height="98" HorizontalAlignment="Left" Fill="#FF474747"/>
        					<Path Width="50" VerticalAlignment="Top" UseLayoutRounding="False" StrokeThickness="0" Stroke="#FF474747" Stretch="Fill" Margin="24,26,0,0" Height="45" HorizontalAlignment="Left" Fill="White" Data="M32,0 L50,0 L50,45 L32,45 z M0,0 L18,0 L18,45 L0,45 z"/>
        				</Grid>
        			</ControlTemplate>
        		</Setter.Value>
        	</Setter>
        </Style>
        <Storyboard x:Name="StoryboardRearrange">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="gameCanvas">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="-768">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <ExponentialEase EasingMode="EaseIn"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <QuadraticEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="gameCanvas">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <ExponentialEase EasingMode="EaseIn"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="1">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <QuadraticEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="StoryboardShowGamingTip">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="imgGamingTip">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <ExponentialEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
                <EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseIn"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
		 <Style x:Key="ButtonStylePauseBdr" TargetType="Button">
		 	<Setter Property="Template">
		 		<Setter.Value>
		 			<ControlTemplate TargetType="Button">
		 				<Grid>
		 					<VisualStateManager.VisualStateGroups>
		 						<VisualStateGroup x:Name="CommonStates">
		 							<VisualState x:Name="Normal"/>
		 							<VisualState x:Name="Pressed">
		 								<Storyboard>
		 									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border">
		 										<DiscreteObjectKeyFrame KeyTime="0">
		 											<DiscreteObjectKeyFrame.Value>
		 												<Visibility>Visible</Visibility>
		 											</DiscreteObjectKeyFrame.Value>
		 										</DiscreteObjectKeyFrame>
		 									</ObjectAnimationUsingKeyFrames>
		 								</Storyboard>
		 							</VisualState>
		 							<VisualState x:Name="Disabled"/>
		 							<VisualState x:Name="PointerOver"/>
		 						</VisualStateGroup>
		 					</VisualStateManager.VisualStateGroups>
		 					<Border BorderBrush="White" BorderThickness="3" Background="{TemplateBinding Background}"/>
		 					<Border x:Name="border" BorderBrush="White" BorderThickness="3" Background="#FF4F4F4F" Visibility="Collapsed"/>
		 					<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
		 				</Grid>
		 			</ControlTemplate>
		 		</Setter.Value>
		 	</Setter>
		 </Style>
		 <Storyboard x:Name="StoryboardHidePause">
		 	<DoubleAnimation Duration="0:0:0.6" To="-1366" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="bdrPause" d:IsOptimized="True">
		 		<DoubleAnimation.EasingFunction>
		 			<QuarticEase EasingMode="EaseInOut"/>
		 		</DoubleAnimation.EasingFunction>
		 	</DoubleAnimation>
		 </Storyboard>
		 <Storyboard x:Name="StoryboardShowPause">
		 	<DoubleAnimation Duration="0:0:0.5" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="bdrPause" d:IsOptimized="True">
		 		<DoubleAnimation.EasingFunction>
		 			<QuarticEase EasingMode="EaseInOut"/>
		 		</DoubleAnimation.EasingFunction>
		 	</DoubleAnimation>
		 </Storyboard>
		 <Style x:Key="ButtonStyle1" TargetType="Button">
		 	<Setter Property="Template">
		 		<Setter.Value>
		 			<ControlTemplate TargetType="Button">
		 				<Grid>
		 					<VisualStateManager.VisualStateGroups>
		 						<VisualStateGroup x:Name="CommonStates">
		 							<VisualState x:Name="Pressed">
		 								<Storyboard>
		 									<DoubleAnimation Duration="0" To="3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="border" d:IsOptimized="True"/>
		 									<DoubleAnimation Duration="0" To="3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
		 									<DoubleAnimation Duration="0" To="3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="border" d:IsOptimized="True"/>
		 									<DoubleAnimation Duration="0" To="3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
		 								</Storyboard>
		 							</VisualState>
		 							<VisualState x:Name="Normal"/>
		 							<VisualState x:Name="Disabled"/>
		 							<VisualState x:Name="MouseOver"/>
		 						</VisualStateGroup>
		 						<VisualStateGroup x:Name="FocusStates">
		 							<VisualState x:Name="Focused"/>
		 						</VisualStateGroup>
		 					</VisualStateManager.VisualStateGroups>
		 					<Border x:Name="border" BorderBrush="White" BorderThickness="2" CornerRadius="10" RenderTransformOrigin="0.5,0.5">
		 						<Border.RenderTransform>
		 							<CompositeTransform/>
		 						</Border.RenderTransform>
		 						<Border.Background>
		 							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
		 								<GradientStop Color="#FFF17272" Offset="0"/>
		 								<GradientStop Color="#FFDE2A2A" Offset="1"/>
		 								<GradientStop Color="#FF8F3B3B" Offset="0.19"/>
		 							</LinearGradientBrush>
		 						</Border.Background>
		 					</Border>
		 					<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RenderTransformOrigin="0.5,0.5">
		 						<ContentPresenter.RenderTransform>
		 							<CompositeTransform/>
		 						</ContentPresenter.RenderTransform>
		 					</ContentPresenter>
		 				</Grid>
		 			</ControlTemplate>
		 		</Setter.Value>
		 	</Setter>
		 </Style>
		 <Style x:Key="ButtonStyle2" TargetType="Button">
		 	<Setter Property="Template">
		 		<Setter.Value>
		 			<ControlTemplate TargetType="Button">
		 				<Grid>
		 					<VisualStateManager.VisualStateGroups>
		 						<VisualStateGroup x:Name="CommonStates">
		 							<VisualState x:Name="Pressed">
		 								<Storyboard>
		 									<DoubleAnimation Duration="0" To="3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="border" d:IsOptimized="True"/>
		 									<DoubleAnimation Duration="0" To="3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
		 									<DoubleAnimation Duration="0" To="3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="border" d:IsOptimized="True"/>
		 									<DoubleAnimation Duration="0" To="3" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
		 								</Storyboard>
		 							</VisualState>
		 							<VisualState x:Name="Normal"/>
		 							<VisualState x:Name="Disabled"/>
		 							<VisualState x:Name="MouseOver"/>
		 						</VisualStateGroup>
		 						<VisualStateGroup x:Name="FocusStates">
		 							<VisualState x:Name="Focused"/>
		 						</VisualStateGroup>
		 					</VisualStateManager.VisualStateGroups>
		 					<Border x:Name="border" BorderBrush="White" BorderThickness="2" CornerRadius="10" RenderTransformOrigin="0.5,0.5">
		 						<Border.RenderTransform>
		 							<CompositeTransform/>
		 						</Border.RenderTransform>
		 						<Border.Background>
		 							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
		 								<GradientStop Color="#FFF1EB72" Offset="0"/>
		 								<GradientStop Color="#FF644A03" Offset="1"/>
		 								<GradientStop Color="#FFBB8900" Offset="0.19"/>
		 							</LinearGradientBrush>
		 						</Border.Background>
		 					</Border>
		 					<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RenderTransformOrigin="0.5,0.5">
		 						<ContentPresenter.RenderTransform>
		 							<CompositeTransform/>
		 						</ContentPresenter.RenderTransform>
		 					</ContentPresenter>
		 				</Grid>
		 			</ControlTemplate>
		 		</Setter.Value>
		 	</Setter>
		 </Style>
		 <Storyboard x:Name="StoryboardShowStatus">
		 	<DoubleAnimation Duration="0:0:0.6" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="bdrStageStatus" d:IsOptimized="True">
		 		<DoubleAnimation.EasingFunction>
		 			<CircleEase/>
		 		</DoubleAnimation.EasingFunction>
		 	</DoubleAnimation>
		 </Storyboard>
		 <Storyboard x:Name="StoryboardHideStatus">
		 	<DoubleAnimation Duration="0:0:0.5" To="1366" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="bdrStageStatus" d:IsOptimized="True">
		 		<DoubleAnimation.EasingFunction>
		 			<QuinticEase EasingMode="EaseInOut"/>
		 		</DoubleAnimation.EasingFunction>
		 	</DoubleAnimation>
		 </Storyboard>
		 <Storyboard x:Name="StoryboardHideCanvas">
		 	<DoubleAnimation Duration="0:0:0.7" To="-768" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="gameCanvas" d:IsOptimized="True">
		 		<DoubleAnimation.EasingFunction>
		 			<ExponentialEase EasingMode="EaseInOut"/>
		 		</DoubleAnimation.EasingFunction>
		 	</DoubleAnimation>
		 	<DoubleAnimation Duration="0:0:0.7" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="gameCanvas" d:IsOptimized="True">
		 		<DoubleAnimation.EasingFunction>
		 			<ExponentialEase EasingMode="EaseInOut"/>
		 		</DoubleAnimation.EasingFunction>
		 	</DoubleAnimation>
		 </Storyboard>
		 <Storyboard x:Name="StoryboardShowCanvas">
		 	<DoubleAnimation Duration="0:0:0.7" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="gameCanvas" d:IsOptimized="True">
		 		<DoubleAnimation.EasingFunction>
		 			<ExponentialEase EasingMode="EaseInOut"/>
		 		</DoubleAnimation.EasingFunction>
		 	</DoubleAnimation>
		 	<DoubleAnimation Duration="0:0:0.7" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="gameCanvas" d:IsOptimized="True">
		 		<DoubleAnimation.EasingFunction>
		 			<ExponentialEase EasingMode="EaseInOut"/>
		 		</DoubleAnimation.EasingFunction>
		 	</DoubleAnimation>
		 </Storyboard>
		 <Storyboard x:Name="StoryboardWaring">
		 	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="imageWaring">
		 		<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0">
		 			<EasingDoubleKeyFrame.EasingFunction>
		 				<CircleEase EasingMode="EaseInOut"/>
		 			</EasingDoubleKeyFrame.EasingFunction>
		 		</EasingDoubleKeyFrame>
		 		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1">
		 			<EasingDoubleKeyFrame.EasingFunction>
		 				<CircleEase EasingMode="EaseInOut"/>
		 			</EasingDoubleKeyFrame.EasingFunction>
		 		</EasingDoubleKeyFrame>
		 	</DoubleAnimationUsingKeyFrames>
		 </Storyboard>
    </common:LayoutAwarePage.Resources>

    <!--
        This grid acts as a root panel for the page that defines two rows:
        * Row 0 contains the back button and page title
        * Row 1 contains the rest of the page layout
    -->
	<Viewbox>
		<VisualStateManager.VisualStateGroups>
<!-- Visual states reflect the application's view state -->
			<VisualStateGroup x:Name="ApplicationViewStates">
				<VisualState x:Name="FullScreenLandscape"/>
				<VisualState x:Name="Filled"/>

                <!-- The entire page respects the narrower 100-pixel margin convention for portrait -->
				<VisualState x:Name="FullScreenPortrait">
					<Storyboard>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
							<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
						</ObjectAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>

                <!-- The back button and title have different styles when snapped -->
				<VisualState x:Name="Snapped">
					<Storyboard>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
							<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
						</ObjectAnimationUsingKeyFrames>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
							<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
						</ObjectAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<Grid Style="{StaticResource LayoutRootStyle}" Height="768" Width="1366">
			<Grid.RowDefinitions>
				<RowDefinition Height="0"/>
				<RowDefinition Height="*"/>
			</Grid.RowDefinitions>

			<!-- Back button and page title -->
			<Image Grid.RowSpan="2" Source="ms-appx:///Images/background.png" Stretch="Fill"/>

			<!-- Back button and page title -->
			<Grid Visibility="Collapsed">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto"/>
					<ColumnDefinition Width="*"/>
				</Grid.ColumnDefinitions>
				<Button x:Name="backButton" Click="GoBack" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
				<TextBlock x:Name="pageTitle" Grid.Column="1" Text="{StaticResource AppName}" Style="{StaticResource PageHeaderTextStyle}"/>
			</Grid>
			<Views:TopToolBar x:Name="toolbar" HorizontalAlignment="Left" Grid.RowSpan="2" VerticalAlignment="Top" Width="1366" Height="159"/>

			<Views:RuneGameCanvas x:Name="gameCanvas" HorizontalAlignment="Center" Height="640" Grid.RowSpan="2" VerticalAlignment="Center" Width="480" Background="#02000000" Margin="443,109,443,19" RenderTransformOrigin="0.5,0.5">
				<Views:RuneGameCanvas.RenderTransform>
					<CompositeTransform/>
				</Views:RuneGameCanvas.RenderTransform>
			</Views:RuneGameCanvas>
			<StackPanel x:Name="StackStageInfo" Margin="93,244,0,0" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left">
				<Grid HorizontalAlignment="Center" VerticalAlignment="Top" Width="250" Height="60">
					<Image x:Name="imgGameModeEasy" Source="/Images/easy.png" HorizontalAlignment="Center" VerticalAlignment="Center"/>
					<Image x:Name="imgGameModeNormal" Source="ms-appx:///Images/normal.png" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed"/>
					<Image x:Name="imgGameModeHard" Source="ms-appx:///Images/hard.png" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed"/>
				</Grid>
				<TextBlock x:Name="txtStageName" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="48" FontFamily="Segoe WP Semibold" Foreground="Black" Margin="0,20,0,0"/>
				<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,20,0,0">
					<Image x:Name="heart1" Height="64" Source="ms-appx:///Images/heart (1).png" Stretch="Fill" Width="64" Margin="10,0"/>
					<Image x:Name="heart2" Height="64" Source="ms-appx:///Images/heart (1).png" Stretch="Fill" Width="64" Margin="10,0"/>
					<Image x:Name="heart3" Height="64" Source="ms-appx:///Images/heart (1).png" Stretch="Fill" Width="64" Margin="10,0"/>
				</StackPanel>
			</StackPanel>
			<Border BorderBrush="Black" BorderThickness="0" HorizontalAlignment="Right" Height="87" Margin="0,159,30,0" Grid.RowSpan="2" VerticalAlignment="Top" Width="339" Background="#7FA9D8E6">
				<Grid>
					<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
						<Views:ToolItemInGame x:Name="tool1" HorizontalAlignment="Center" Height="60" VerticalAlignment="Center" Width="60" Margin="10,0"/>
						<Views:ToolItemInGame x:Name="tool2" HorizontalAlignment="Center" Height="60" Grid.Row="1" VerticalAlignment="Center" Width="60" Margin="10,0"/>
						<Views:ToolItemInGame x:Name="tool3" HorizontalAlignment="Center" Height="60" Grid.Row="2" VerticalAlignment="Center" Width="60" Margin="10,0"/>
						<Views:ToolItemInGame x:Name="tool4" HorizontalAlignment="Center" Height="60"  VerticalAlignment="Center" Width="60" Margin="10,0"/>
					</StackPanel>
					<TextBlock x:Name="txtNoTools" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="16" Margin="20,0" Foreground="Black" FontWeight="Bold" Visibility="Collapsed">
						<Run Text="道具栏空空如也"/>
						<Run Text="。。。"/>
						<LineBreak/>
						<Run Text="亲，道具很有用哦，价钱也不贵，下次游戏一定要试试哦"/>
					</TextBlock>
				</Grid>
			</Border>
			<Button Click="btnPause_Click" x:Name="btnPause" Content="Button" Margin="0,651,30,19" Grid.RowSpan="2" Style="{StaticResource ButtonStylePause}" HorizontalAlignment="Right"/>
			<Grid Margin="443,363,443,0" Grid.RowSpan="2" VerticalAlignment="Top">
				<Image x:Name="imgGamingTip" Source="ms-appx:///Images/Tip/start.png" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="None" Opacity="0" IsHitTestVisible="False"/>
			</Grid>
			<Border x:Name="bdrPause" BorderBrush="Black" BorderThickness="0" HorizontalAlignment="Left" Height="768" Grid.RowSpan="2" VerticalAlignment="Top" Width="1366" Background="#99000000" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
				<Border.RenderTransform>
					<CompositeTransform TranslateX="-1366"/>
				</Border.RenderTransform>
				<Grid HorizontalAlignment="Center" Height="453" VerticalAlignment="Center" Width="660">
					<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="暂  停" VerticalAlignment="Top" FontSize="64" FontWeight="Bold" FontFamily="Microsoft YaHei" Foreground="Black" RenderTransformOrigin="0.5,0.5">
						<TextBlock.RenderTransform>
							<CompositeTransform TranslateX="3" TranslateY="3"/>
						</TextBlock.RenderTransform>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="暂  停" VerticalAlignment="Top" FontSize="64" FontWeight="Bold" FontFamily="Microsoft YaHei" Margin="0" Foreground="White"/>
					<StackPanel Margin="0,116,0,0" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Top">
						<Button x:Name="btnContinue" Click="btnResume_Click_1" Content="继续游戏" HorizontalAlignment="Left" Height="76" Style="{StaticResource ButtonStylePauseBdr}" VerticalAlignment="Top" Width="290" FontSize="32" FontFamily="Microsoft YaHei">
							<Button.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FFE80000"/>
									<GradientStop Color="#FFA20000" Offset="1"/>
								</LinearGradientBrush>
							</Button.Background>
						</Button>
						<Button x:Name="btnRestart" Click="btnPauseRestart_Click_1" Content="重新开始" HorizontalAlignment="Left" Height="76" Style="{StaticResource ButtonStylePauseBdr}" VerticalAlignment="Top" Width="290" FontSize="32" FontFamily="Microsoft YaHei" Margin="0,40,0,0">
							<Button.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF00610D" Offset="1"/>
									<GradientStop Color="#FF009C15"/>
								</LinearGradientBrush>
							</Button.Background>
						</Button>
						<Button x:Name="btnMainMenu" Click="btnReturnToMain_Click_1" Content="主菜单" HorizontalAlignment="Left" Height="76" Style="{StaticResource ButtonStylePauseBdr}" VerticalAlignment="Top" Width="290" FontSize="32" FontFamily="Microsoft YaHei" Margin="0,40,0,0">
							<Button.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF051F76" Offset="1"/>
									<GradientStop Color="#FF002DC9"/>
								</LinearGradientBrush>
							</Button.Background>
						</Button>
					</StackPanel>
				</Grid>
			</Border>
			<Border x:Name="bdrStageStatus" BorderBrush="Black" Margin="0" Grid.RowSpan="2" Background="#99000000" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
				<Border.RenderTransform>
					<CompositeTransform TranslateX="1366"/>
				</Border.RenderTransform>
				<Border BorderThickness="1" Background="#B2000000" Width="447" Height="680" HorizontalAlignment="Center" VerticalAlignment="Center">
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="26*"/>
							<RowDefinition Height="233*"/>
						</Grid.RowDefinitions>
						<TextBlock x:Name="txtStatusStageName" TextWrapping="Wrap" Text="STAGE 1-1" TextAlignment="Center" Foreground="White" FontSize="48" VerticalAlignment="Center" FontFamily="Segoe WP Semibold"/>
						<Path Data="M17.6667,40 L335.794,40" Fill="#FFF4F4F5" HorizontalAlignment="Center" Height="1" Margin="9.936,0.5,9.936,0" Stretch="Fill" Stroke="#FFC9C9C9" UseLayoutRounding="False" VerticalAlignment="Top" Width="319.128" Grid.Row="1"/>
						<TextBlock HorizontalAlignment="Left" Margin="16,7,0,0" Grid.Row="1" TextWrapping="Wrap" Text="得分" VerticalAlignment="Top" Foreground="#FF00FF74" FontSize="24"/>
						<TextBlock x:Name="txtScore" HorizontalAlignment="Center" Margin="0,7,0,0" Grid.Row="1" TextWrapping="Wrap" Text="1600" VerticalAlignment="Top" Foreground="#FF00FF74" FontSize="24"/>
						<TextBlock x:Name="txtScoreG" HorizontalAlignment="Right" Margin="0,7,9,0" Grid.Row="1" TextWrapping="Wrap" Text="160 G" VerticalAlignment="Top" Foreground="#FFFFAE00" FontSize="24"/>
						<TextBlock HorizontalAlignment="Left" Margin="16,44,0,0" Grid.Row="1" TextWrapping="Wrap" Text="连击" VerticalAlignment="Top" Foreground="Yellow" FontSize="24"/>
						<TextBlock x:Name="txtCombo" HorizontalAlignment="Center" Margin="0,44,0,0" Grid.Row="1" TextWrapping="Wrap" Text="5" VerticalAlignment="Top" Foreground="Yellow" FontSize="24"/>
						<TextBlock x:Name="txtComboG" HorizontalAlignment="Right" Margin="0,44,9,0" Grid.Row="1" TextWrapping="Wrap" Text="300 G" VerticalAlignment="Top" Foreground="#FFFFAE00" FontSize="24"/>
						<Button Click="btnNext_Click_1" x:Name="btnNext" Content="下一个等级" HorizontalAlignment="Center" Height="91" Style="{StaticResource ButtonStylePauseBdr}" VerticalAlignment="Bottom" Width="294" Grid.Row="1" FontSize="40" Background="#FF198700" FontFamily="Microsoft YaHei" Margin="0,0,0,20" Visibility="Collapsed"/>
						<Button Click="btnRetry_Click_1" x:Name="btnRetry" Content="再试一次" HorizontalAlignment="Center" Height="91" Style="{StaticResource ButtonStylePauseBdr}" VerticalAlignment="Bottom" Width="294" Grid.Row="1" FontSize="40" Background="#FF9E8200" FontFamily="Microsoft YaHei" Margin="0,0,0,20" Visibility="Collapsed"/>
						<Image x:Name="ImgStatus" Margin="0,282,0,0" Grid.Row="1" Source="ms-appx:///Images/Tip/StageSuccess.png" Stretch="None" VerticalAlignment="Top"/>
						<TextBlock x:Name="txtAddG" HorizontalAlignment="Right" Margin="0,121,9,0" Grid.Row="1" TextWrapping="Wrap" Text="+460 G" VerticalAlignment="Top" Foreground="#FFFFAE00" FontSize="24"/>
						<TextBlock x:Name="txtTotalG" HorizontalAlignment="Right" Margin="0,158,9,0" Grid.Row="1" TextWrapping="Wrap" Text="TOTAL: 103300 G" VerticalAlignment="Top" Foreground="#FFFFAE00" FontSize="24"/>
						<Button Click="btnReturn_Click_1" x:Name="btnReturn" Content="返回菜单" HorizontalAlignment="Center" Height="91" Margin="0,0,0,20" Style="{StaticResource ButtonStylePauseBdr}" VerticalAlignment="Bottom" Width="294" Grid.Row="1" FontSize="40" Background="#FFD60000" FontFamily="Microsoft YaHei"/>
						<TextBlock HorizontalAlignment="Left" Margin="16,82,0,0" Grid.Row="1" TextWrapping="Wrap" Text="剩余精神力" VerticalAlignment="Top" Foreground="#FF00E8FF" FontSize="24"/>
						<TextBlock x:Name="txtSprite" HorizontalAlignment="Center" Margin="0,82,0,0" Grid.Row="1" TextWrapping="Wrap" Text="5" VerticalAlignment="Top" Foreground="#FF00E8FF" FontSize="24"/>
						<TextBlock x:Name="txtSpriteG" HorizontalAlignment="Right" Margin="0,82,9,0" Grid.Row="1" TextWrapping="Wrap" Text="100 G" VerticalAlignment="Top" Foreground="#FFFFAE00" FontSize="24"/>
					</Grid>
				</Border>
			</Border>
			<TextBlock HorizontalAlignment="Left" Height="28" Margin="997,131,0,0" Grid.RowSpan="2" TextWrapping="Wrap" VerticalAlignment="Top" Width="283" Foreground="Black">
				<Run FontSize="18.667" Text="道具栏 "/>
				<Run FontSize="14.667" Text="点击即可使用"/>
			</TextBlock>
            <Image x:Name="imageWaring" Grid.RowSpan="2" Source="ms-appx:///Images/warning.png" Stretch="Fill" IsHitTestVisible="False" Visibility="Collapsed"/>
            <Image x:Name="imgMokaAd" Source="ms-appx:///Images/mokaAd.jpg" Width="300" Height="250" Stretch="Fill" Grid.RowSpan="2" Tapped="MokaAd_Tapped" Margin="1036,313,30,205"/>
            <!--<JiuYouWin8Ad:JiuYouAdControl x:Name="jiuyouAd" DeveloperID="83e629f576caaa072e51b1b14fed3d35" AdvertisementFormat="Five" Margin="1036,313,30,205" Grid.RowSpan="2" />-->
            <Image x:Name="imgGuide" Grid.RowSpan="2" Source="ms-appx:///Images/guide.png" Stretch="Fill" Visibility="Collapsed"/>
		</Grid>
	</Viewbox>
</common:LayoutAwarePage>
